package com.sunwayworld.basemodule.rm.equipment.equiptreturn.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.NotNull;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.AbstractAuditable;
import com.sunwayworld.framework.support.domain.Auditable;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 设备归还管理
 *
 * @author gaozq@sunwayworld.com
 * @date 2023-06-30
 */
@Table("T_LIMS_EQUIPT_RETURN")
public class LimsEquiptReturnBean extends AbstractAuditable<Long> implements Auditable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long equiptBorrowId;// 借用ID，归还申请必须选择借用记录，被选择的借用记录不可再次被选择
    private Long equiptId;// 设备id
    private String equiptCode;// 设备编码
    private String equiptName;// 设备名称
    private String borrowDept;// 借用部门
    private String borrowDeptId;// 借用部门id
    private String borrowLab;// 借用实验室
    private String borrowLabId;// 借用实验室id
    private String borrowTestGroup;// 借用测试组
    private String borrowTestGroupId;// 借用测试组id
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime borrowTime;// 借用时间
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime returnTime;// 归还时间
    @NotNull(defaultValue = "draft")
    private String processStatus;// 流程状态
    private String remark;// 备注
    private String borrowName;// 借用人
    private String borrowId;// 借用人id
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getEquiptBorrowId() {
        return equiptBorrowId;
    }

    public void setEquiptBorrowId(Long equiptBorrowId) {
        this.equiptBorrowId = equiptBorrowId;
    }
    public Long getEquiptId() {
        return equiptId;
    }

    public void setEquiptId(Long equiptId) {
        this.equiptId = equiptId;
    }

    public String getEquiptCode() {
        return equiptCode;
    }

    public void setEquiptCode(String equiptCode) {
        this.equiptCode = equiptCode;
    }

    public String getEquiptName() {
        return equiptName;
    }

    public void setEquiptName(String equiptName) {
        this.equiptName = equiptName;
    }

    public String getBorrowDept() {
        return borrowDept;
    }

    public void setBorrowDept(String borrowDept) {
        this.borrowDept = borrowDept;
    }

    public String getBorrowDeptId() {
        return borrowDeptId;
    }

    public void setBorrowDeptId(String borrowDeptId) {
        this.borrowDeptId = borrowDeptId;
    }

    public String getBorrowLab() {
        return borrowLab;
    }

    public void setBorrowLab(String borrowLab) {
        this.borrowLab = borrowLab;
    }

    public String getBorrowLabId() {
        return borrowLabId;
    }

    public void setBorrowLabId(String borrowLabId) {
        this.borrowLabId = borrowLabId;
    }

    public String getBorrowTestGroup() {
        return borrowTestGroup;
    }

    public void setBorrowTestGroup(String borrowTestGroup) {
        this.borrowTestGroup = borrowTestGroup;
    }

    public String getBorrowTestGroupId() {
        return borrowTestGroupId;
    }

    public void setBorrowTestGroupId(String borrowTestGroupId) {
        this.borrowTestGroupId = borrowTestGroupId;
    }

    public LocalDateTime getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(LocalDateTime borrowTime) {
        this.borrowTime = borrowTime;
    }

    public LocalDateTime getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(LocalDateTime returnTime) {
        this.returnTime = returnTime;
    }

    public String getProcessStatus() {
        return processStatus;
    }

    public void setProcessStatus(String processStatus) {
        this.processStatus = processStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getBorrowName() {
        return borrowName;
    }

    public void setBorrowName(String borrowName) {
        this.borrowName = borrowName;
    }

    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

}
